package cn.edu.hstc.wm.bean;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

@SuppressWarnings("serial")
public class Category implements Serializable {

	@Override
	public String toString() {
		return "Category [id=" + id + ", name=" + name + ", stores=" + stores + "]";
	}

	private Integer id; // 分类的id
	private String name; // 分类名称

	private Set<Store> stores = new HashSet<Store>(); // 分类拥有的店铺，表示与店铺的关系

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Set<Store> getStores() {
		return stores;
	}

	public void setStores(Set<Store> stores) {
		this.stores = stores;
	}

}
